package vehement.game.nodes;

import org.lwjgl.util.vector.Vector3f;

import vehement.game.interfaces.Updateable;

//This is an example code piece
public class PhysicsNode implements Updateable {

	public Vector3f position;
	public Vector3f velocity;
	public Vector3f acceleration;

	public PhysicsNode(){
		position     = new Vector3f(0.f,0.f,0.f);
		velocity     = new Vector3f(0.f,0.f,0.f);
		acceleration = new Vector3f(0.f,0.f,0.f);
	}
	
	public void update(float delta) {
		Vector3f.add(velocity,(Vector3f) acceleration.scale(delta) , velocity);
		Vector3f.add(position,(Vector3f) velocity.scale(delta), position);
	}

}
